package com.easy.mapper;

import com.easy.bean.Admin;
import com.easy.bean.Customer;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AdminDao {

    int add(@Param("param") Admin admin);

    int del(@Param("id") Integer id);

    int edit(@Param("param") Admin admin);

    List<Admin> all(@Param("param") Admin admin);

    Admin one(@Param("id") Integer id);

    int pageCount(@Param("param") Admin admin);

    List<Admin> page(@Param("page") Page page, @Param("param") Admin admin);

    Admin getByUsername(@Param("username") String username);


}
